x86, vmx realmode: Stack manipulation on interrupt/exception injection
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 7 Nov 2008 17:06:21 +0000 (17:06 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 7 Nov 2008 17:06:21 +0000 (17:06 +0000)
should respect SS size, not CS size.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen/arch/x86/hvm/vmx/realmode.c

index 5d13f4e60b693676136dbd23929f51c6f31cdd77..9bd1f25162b5d9501800177aa69fc0177005de6d 100644 (file)
@@ -69,7 +69,7 @@ static void realmode_deliver_exception(
     frame[1] = csr->sel;
     frame[2] = regs->eflags & ~X86_EFLAGS_RF;
 
-    if ( hvmemul_ctxt->ctxt.addr_size == 32 )
+    if ( hvmemul_ctxt->ctxt.sp_size == 32 )
     {
         regs->esp -= 6;
         pstk = regs->esp;